﻿using ChurchDiary.DAL.Contract;
using ChurchDiary.DAL.Methods;
using ChurchDiary.TableEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChurchDiary.BLL
{
    public class BLL_User
    {
        #region User
        public EntityUser GetUserInfo(string userName,string password)
        {
            IUser user = new DAL_User();
            return user.GetUserInfo(userName, password);
        }
        public EntityUser GetUserInfo(Guid userId)
        {
            IUser user = new DAL_User();
            return user.GetUserInfo(userId);
        }
        #endregion User

        #region UserType
        public EntityUserType GetUserType(Guid userTypeId)
        {
            IUser user = new DAL_User();
            return user.GetUserType(userTypeId);
        }
        #endregion UserType
    }
}
